<html>
<body>
<h2>Hello World!</h2>
<button onclick="send()">dianji</button>
<div id="data"></div>
<script>
var ws=new WebSocket("ws://localhost:8080/test-websocket/zhangsan");
ws.onopen=function(e){
	console.log(e);
}
	var dd=document.getElementById("data");
ws.onmessage=function(e){
	dd.innerHTML+="<br/>"+e.data;
}
function send(){
	ws.send("hello!");
}
</script>
</body>
</html>
